package com.threeox.commonlibrary.entity.engine.request.network;

import com.threeox.commonlibrary.entity.base.BaseObj;
import com.threeox.utillibrary.util.res.StringHelper;

/**
 * 
 * @ClassName: ResponseConfigMsg
 * 
 * @Description: TODO(响应对象的配置信息)
 * 
 * @author 赵屈犇
 * 
 * @date 创建时间: 2017/7/4 12:29
 * 
 * @version 1.0
 * 
 */
public class ResponseConfigMsg extends BaseObj {

    private String codeName;// 响应参数Key编码
    private String dataName;// 响应参数Data的编码
    private String msgName;// 响应参数Msg的编码
    private String errorCode;// 响应失败返回的code值
    private String succeedCode;// 响应成功返回的code值

    public void initData(StringHelper stringHelper) {
        this.codeName = stringHelper.getStringText(codeName);
        this.dataName = stringHelper.getStringText(dataName);
        this.msgName = stringHelper.getStringText(msgName);
        this.errorCode = stringHelper.getStringText(errorCode);
        this.succeedCode = stringHelper.getStringText(succeedCode);
    }

    public String getCodeName() {
        return codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public String getDataName() {
        return dataName;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }

    public String getMsgName() {
        return msgName;
    }

    public void setMsgName(String msgName) {
        this.msgName = msgName;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getSucceedCode() {
        return succeedCode;
    }

    public void setSucceedCode(String succeedCode) {
        this.succeedCode = succeedCode;
    }
}
